package com.seewo.dubbo.debugger.sample.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.seewo.dubbo.debugger.sample.api.DemoService;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * @author chenliangliang
 * @date 2018/7/24
 */
@Service(retries = 2,timeout = 5000,version = "1.0")
public class DemoServiceImpl implements DemoService {
    @Override
    public String sayHello(String name) {
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String word=sdf.format(new Date())+" Hello : "+name;
        System.out.println(word);
        return word;
    }
}
